<div class="row justify-content-center">
    <div class="col-8">
        <form name="editForm" role="form" novalidate (ngSubmit)="save()" [formGroup]="editForm">
            <h2 id="jhi-receive-addr-heading">Create or edit a Receive Addr</h2>

            <div>
                <jhi-alert-error></jhi-alert-error>

                <div class="form-group" [hidden]="!editForm.get('id')!.value">
                    <label for="id">ID</label>
                    <input type="text" class="form-control" id="id" name="id" formControlName="id" readonly />
                </div>

                <div class="form-group">
                    <label class="form-control-label" for="field_receiveName">Receive Name</label>
                    <input type="text" class="form-control" name="receiveName" id="field_receiveName"
                           formControlName="receiveName"/>
                </div>

                <div class="form-group">
                    <label class="form-control-label" for="field_receivePhone">Receive Phone</label>
                    <input type="text" class="form-control" name="receivePhone" id="field_receivePhone"
                           formControlName="receivePhone"/>
                </div>

                <div class="form-group">
                    <label class="form-control-label" for="field_receiveAddr">Receive Addr</label>
                    <input type="text" class="form-control" name="receiveAddr" id="field_receiveAddr"
                           formControlName="receiveAddr"/>
                </div>
            </div>

            <div>
                <button type="button" id="cancel-save" class="btn btn-secondary" (click)="previousState()">
                    <fa-icon icon="ban"></fa-icon>&nbsp;<span>Cancel</span>
                </button>

                <button type="submit" id="save-entity" [disabled]="editForm.invalid || isSaving" class="btn btn-primary">
                    <fa-icon icon="save"></fa-icon>&nbsp;<span>Save</span>
                </button>
            </div>
        </form>
    </div>
</div>
